package uc108.com.jetpackdemo.room;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface GameDao {
    @Insert
    void insert(Game game);

    @Query("select * from tcy_game")
    List<Game> getAll();

    @Query("delete from tcy_game")
    void deleteAll();
}
